package cn.edu.sjtu.user_management.dto;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Builder
@Data
public class UpdateRoleForm {
    @NotBlank
    private String userId;
    @NotNull
    @Max(value = 3)
    @Min(value = 0)
    private Integer newRole;

    @Tolerate
    UpdateRoleForm() {
    }
}
